home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Graphics3D / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.0 KB  |  71 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWDRGDRP_H
  10. #include "FWDrgDrp.h"
  11. #endif
  12.  
  13. #ifndef FWFRAME_H
  14. #include <FWFrame.h>        // FW_CFrame
  15. #endif
  16.  
  17. #ifndef FWRECT_H
  18. #include <FWRect.h>            // FW_CRect
  19. #endif
  20.  
  21. // ----- OS Layer -----
  22. #ifndef FWEVENT_H
  23. #include "FWEvent.h"        // FW_CMouseEvent
  24. #endif
  25.  
  26. // ---- MacOS includes -----
  27. #include "QD3DViewer.h"        // TQ3ViewerObject
  28.  
  29. //=======================================================================
  30. class CGraphics3DPart;
  31. class FW_CMenuEvent;
  32. class FW_CPrintHandler;
  33.  
  34. //=======================================================================
  35. class CGraphics3DFrame : public FW_CFrame {
  36. public:
  37.     FW_DECLARE_AUTO(CGraphics3DFrame)
  38.     
  39.                         CGraphics3DFrame(Environment* ev, 
  40.                                     ODFrame* odFrame, 
  41.                                     FW_CPresentation* presentation, 
  42.                                     CGraphics3DContent* content);
  43.     virtual             ~CGraphics3DFrame();
  44. protected:
  45. // overrides
  46.     virtual void        FacetAdded(Environment* ev, ODFacet* facet, 
  47.                                     unsigned short facetCount);
  48.     virtual void        Draw(Environment *ev, 
  49.                              ODFacet* odFacet, 
  50.                              ODShape* invalidShape);
  51.     virtual void        FrameShapeChanged(Environment* ev);
  52.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  53.                                       FW_CMenuBar* menuBar, 
  54.                                       FW_Boolean hasMenuFocus,
  55.                                       FW_Boolean isRoot);
  56.     virtual FW_Boolean    DoMenu(Environment* ev,
  57.                                const FW_CMenuEvent& theMenuEvent);
  58.     virtual FW_Boolean     DoMouseDown(Environment* ev, 
  59.                                 const FW_CMouseEvent& theMouseEvent);
  60. // overrides printing
  61.     virtual FW_CPrintHandler*    NewPrintHandler(Environment* ev);
  62.     virtual    FW_Boolean            IsCurrentlyPrintable(Environment* ev) const;
  63.     virtual void                GetPrintContentExtent(Environment *ev, FW_CPoint& extent) const;
  64. // new members
  65. private:
  66.     TQ3ViewerObject        fViewer;
  67. };
  68.  
  69. //=======================================================================
  70. #endif
  71.